package tech.yunjing.train.entity;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;

/**
 * 账户实体类
 * Created by ZhangFan on 2017/6/8.
 */
public class Account implements Serializable {
    /**
     * accountId:账户id
     * userId:用户id
     * accountName:账户名
     * createDate：账户创建时间
     * paymentPassword：支付密码
     * accountStatus：账户状态
     * accountBalance：账户余额
     * accountDetail:账户明细
     */
    private Integer accountId;
    private Long userId;
    private String accountName;
    private Timestamp createDate;
    private String paymentPassword;
    private Integer accountStatus;
    private Double accountBalance;
    private List<AccountDetail> accountDetail;

    public Account() {
    }

    public Account(Integer accountId, Long userId, String accountName, Timestamp createDate, String paymentPassword, Integer accountStatus, Double accountBalance, List<AccountDetail> accountDetail) {
        this.accountId = accountId;
        this.userId = userId;
        this.accountName = accountName;
        this.createDate = createDate;
        this.paymentPassword = paymentPassword;
        this.accountStatus = accountStatus;
        this.accountBalance = accountBalance;
        this.accountDetail = accountDetail;
    }

    public Integer getAccountId() {
        return accountId;
    }

    public void setAccountId(Integer accountId) {
        this.accountId = accountId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getAccountName() {
        return accountName;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }

    public Timestamp getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Timestamp createDate) {
        this.createDate = createDate;
    }

    public String getPaymentPassword() {
        return paymentPassword;
    }

    public void setPaymentPassword(String paymentPassword) {
        this.paymentPassword = paymentPassword;
    }

    public Integer getAccountStatus() {
        return accountStatus;
    }

    public void setAccountStatus(Integer accountStatus) {
        this.accountStatus = accountStatus;
    }

    public Double getAccountBalance() {
        return accountBalance;
    }

    public void setAccountBalance(Double accountBalance) {
        this.accountBalance = accountBalance;
    }

    public List<AccountDetail> getAccountDetail() {
        return accountDetail;
    }

    public void setAccountDetail(List<AccountDetail> accountDetail) {
        this.accountDetail = accountDetail;
    }

    @Override
    public String toString() {
        return "Account{" +
                "accountId=" + accountId +
                ", userId=" + userId +
                ", accountName='" + accountName + '\'' +
                ", createDate=" + createDate +
                ", paymentPassword='" + paymentPassword + '\'' +
                ", accountStatus=" + accountStatus +
                ", accountBalance=" + accountBalance +
                ", accountDetail=" + accountDetail +
                '}';
    }
}